package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业绩分配对象 sys_contract_spd
 *
 * @author ruoyi
 * @date 2025-06-23
 */
public class SysContractSpd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户主键 */
    @Excel(name = "用户主键")
    private Long userId;

    /** 百分比 */
    @Excel(name = "百分比")
    private Long percentage;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal price;

    /** 合同主键 */
    @Excel(name = "合同主键")
    private Long contractId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setPercentage(Long percentage)
    {
        this.percentage = percentage;
    }

    public Long getPercentage()
    {
        return percentage;
    }

    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }

    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId()
    {
        return contractId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("percentage", getPercentage())
                .append("price", getPrice())
                .append("contractId", getContractId())
                .toString();
    }
}